<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.2 & 7.3
 * @ Decoder version: 1.1.6
 * @ Release: 10/08/2022
 */

// Decoded file for php version 71.
class PHPExcel_Cell_DataType
{
    private static $errorCodes = ["#NULL!" => 0, "#DIV/0!" => 1, "#VALUE!" => 2, "#REF!" => 3, "#NAME?" => 4, "#NUM!" => 5, "#N/A" => 6];
    const TYPE_STRING2 = "str";
    const TYPE_STRING = "s";
    const TYPE_FORMULA = "f";
    const TYPE_NUMERIC = "n";
    const TYPE_BOOL = "b";
    const TYPE_NULL = "null";
    const TYPE_INLINE = "inlineStr";
    const TYPE_ERROR = "e";
    public static function getErrorCodes()
    {
        return self::$errorCodes;
    }
    public static function dataTypeForValue($pValue = NULL)
    {
        return PHPExcel_Cell_DefaultValueBinder::dataTypeForValue($pValue);
    }
    public static function checkString($pValue = NULL)
    {
        if($pValue instanceof PHPExcel_RichText) {
            return $pValue;
        }
        $pValue = PHPExcel_Shared_String::Substring($pValue, 0, 32767);
        $pValue = str_replace(["\r\n", "\r"], "\n", $pValue);
        return $pValue;
    }
    public static function checkErrorCode($pValue = NULL)
    {
        $pValue = (string) $pValue;
        if(!array_key_exists($pValue, self::$errorCodes)) {
            $pValue = "#NULL!";
        }
        return $pValue;
    }
}

?>